﻿using System;
using System.Runtime.Serialization;

namespace NCMIS.ObjectModel.MetaData
{
    /// <summary>
    /// Specifies whether the Repository MUST return relationships where the specified Object is the source of the
    /// relationship, the target of the relationship, or both.
    /// </summary>
    [DataContract(Namespace = CmisNs.Cmis)]
    public enum RelationshipDirection
    {
        /// <summary>
        /// The Repository must return only relationship objects where the specified object is the source object.
        /// </summary>
        [EnumMember(Value = "source")]
        Source,

        /// <summary>
        /// The Repository MUST return only relationship objects where the specified object is the target object.
        /// </summary>
        [EnumMember(Value = "target")]
        Target,

        /// <summary>
        /// The Repository MUST return relationship objects where the specified object is either the source or the target object.
        /// </summary>
        [EnumMember(Value = "either")]
        Either,
    }
}
